package com.lanxiaoye.shoppingSystem.service;

import com.lanxiaoye.shoppingSystem.common.page.HistoryPage;
import com.lanxiaoye.shoppingSystem.common.page.Page;
import com.lanxiaoye.shoppingSystem.entity.MessageActivity;
import com.lanxiaoye.shoppingSystem.common.exception.BaseException;
import com.lanxiaoye.shoppingSystem.common.exception.EmptyException;
import com.lanxiaoye.shoppingSystem.entity.OwnEntity;
import com.lanxiaoye.shoppingSystem.entity.User;

import java.util.List;

/**
 * Created by libing on 2016/12/13.
 */
public interface HomeIndexService {
    public User getUserInfo(User user) throws  BaseException,EmptyException ;
    public MessageActivity getMessageActivity(User user) throws BaseException,EmptyException;
    public int getMessageNum(User user) throws BaseException,EmptyException;
    public int getSearchHistory(User user) throws BaseException,EmptyException;
    public List<String> getMostLikeSearch(HistoryPage page) throws BaseException,EmptyException;
    public OwnEntity getOwnEntity(String history) throws BaseException,EmptyException;
    public List<OwnEntity> getOwnEntityList(Page page) throws BaseException,EmptyException;
    public int getOwnNumbers(Page page) throws BaseException,EmptyException;
}
